home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970929-19971216 / 000187_news@newsmaster….columbia.edu _Tue Oct 28 08:33:35 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id IAA11180
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 28 Oct 1997 08:33:34 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id IAA00287
  7.     for kermit.misc@watsun; Tue, 28 Oct 1997 08:33:33 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Using variable in SET commands...
  12. Date: 28 Oct 1997 13:33:28 GMT
  13. Organization: Columbia University
  14. Lines: 27
  15. Message-ID: <634pj8$b17$1@apakabar.cc.columbia.edu>
  16. References: <34554BFB.C864758D@earthlink.net>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7968
  19.  
  20. In article <34554BFB.C864758D@earthlink.net>,
  21. Bill <pearson@earthlink.net> wrote:
  22. : I'm trying to use the "Built-in Variables" for some of my scripting. I
  23. : would like to be able to set them, specifically \v(user), \v(password),
  24. : and \v(printer). At the command prompt I can set them using the SET
  25. : commands, e.g.  SET LOGIN USER <username>. However, when I attempt this
  26. : using a variable (\%a) or a macro (\m(username)), only the literal value
  27. : gets placed in the "Built-in Variables".
  28. : Is there a way to de-reference the variables/macros within the SET
  29. : commands?  Or, access the "Built-in Variables" directly within a script,
  30. : i.e. define \v(user) {\m(username)}?
  31. : BTW: I'm using K95 on an Intel NT4.0 (build 1381 service pack 3) to access
  32. : an OPENVMS/Alpha across an ethernet LAN.
  33. The \v(user) variable is special, and the \v(password) even more so;
  34. these are not intended for general-purpose use.  There is, at present, no
  35. \v(printer) variable.  In any case, you can't put a \v(xxx) variable on the
  36. "left hand side" of a definition or assignment; that's what regular
  37. user-defined variables are for:
  38.  
  39.   define \%a somevalue
  40.   assign user \%a
  41.   echo \m(user)
  42.  
  43. - Frank